<?php

namespace App\Http\Controllers\Api;

use App\Api\Helpers\ApiResponse;
use App\Http\Controllers\Controller as BaseController;
use Doctrine\DBAL\Exception\DatabaseDoesNotExist;
use Illuminate\Support\Facades\Auth;

class Controller extends BaseController
{

    use ApiResponse;
    // 其他通用的Api帮助函数

//    public function __construct(){
//        $user = Auth::guard('api')->user();
//
//        if($user && $user->status==1){//拉黑用户拦截
//            //dd($user);
//            return $this->failed($user->reason);
//
//        }
//    }
}
